﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductDetail.ascx.cs" Inherits="BestBuy.UserControls.ProductDetail" %>

<asp:Panel ID="ProductDetailPanel" runat="server">
    <asp:UpdatePanel runat="server" UpdateMode="Always">
        <ContentTemplate>
            <table class="table table-bordered" width="100%">
                <tr>
                    <td>Product</td>
                    <td>
                        <asp:HiddenField ID="hidProduct" runat="server" />
                        <asp:Label ID="ProductLable" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>Sellers</td>
                    <td>
                        <asp:CheckBoxList ID="SellerListCheckBoxList" runat="server"  DataTextField="Username" DataValueField="ID">
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:CheckBox ID="AllowOthersSellerJoinCheckBox" runat="server" Text="Allow others seller join"/>
                    </td>
                </tr>
                <tr>
                    <td> <asp:Literal ID="TitleLiteral" runat="server" Text="Title"></asp:Literal> </td>
                    <td> <asp:TextBox ID="TitleTextBox" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="TitleTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="SubTitleLiteral" runat="server" Text="Sub Title"></asp:Literal></td>
                    <td><asp:TextBox ID="SubTitleTextBox" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="Label2" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="SubTitleTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="DescriptionLiteral" runat="server" Text="Description"></asp:Literal></td>
                    <td><asp:TextBox ID="DescriptionTextBox" runat="server" TextMode="MultiLine" 
                            Width="80%"></asp:TextBox>
                        <asp:Label ID="Label3" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="DescriptionTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="ImageLiteral" runat="server" Text="Image"></asp:Literal></td>
                    <td><asp:FileUpload ID="ImageFileUpload" runat="server" /></td>
                </tr>
                <tr>
                    <td><asp:Literal ID="QuantityLiteral" runat="server" Text="Quantity"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="QuantityTextBox"></asp:TextBox> 
                        <asp:Label ID="Label4" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="QuantityTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="StartPriceLiteral" runat="server" Text="Start Price"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="StartPriceTextBox"></asp:TextBox> 
                        <asp:Label ID="Label5" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="StartPriceTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="MaxPriceLiteral" runat="server" Text="Max Price"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="MaxPriceTextBox"></asp:TextBox> 
                        <asp:Label ID="Label6" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="MaxPriceTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="AuctionTypeLiteral" runat="server" Text="Auction Type"></asp:Literal></td>
                    <td>
                        <asp:RadioButtonList ID="AuctionTypeRadio" runat="server" 
                                        RepeatDirection="Horizontal">
                            <asp:ListItem Value="False" Selected="True" Text="Open"></asp:ListItem>
                            <asp:ListItem Value="True" Text="Close"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="StartTimeLiteral" runat="server" Text="Start Time"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="StartTimeTextBox"></asp:TextBox>
                        <asp:Label ID="Label7" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="StartTimeTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="EndTimeLiteral" runat="server" Text="End Time"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="EndTimeTextBox"></asp:TextBox>
                        <asp:Label ID="Label8" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                            ControlToValidate="EndTimeTextBox" Display="None" 
                            ErrorMessage="RequiredFieldValidator" 
                            ValidationGroup="ProductDetailValidations">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="PaymentLiteral" runat="server" Text="Payment"></asp:Literal></td>
                    <td>
                        <asp:CheckBoxList ID="PaymentCheckBoxList" runat="server" DataTextField="Name" 
                            DataValueField="ID">
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td><asp:Literal ID="FreeShippingLiteral" runat="server" Text="Free Shipping"></asp:Literal></td>
                    <td><asp:TextBox runat="server" ID="FreeShippingTextBox"></asp:TextBox></td>
                </tr>
            </table>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                ValidationGroup="ProductDetailValidations" />
            <br />
            
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>
